package com.example.technologyintroandroid;

import android.os.Bundle;
import android.app.Activity;
import android.view.Display;
import android.view.Window;
import sheep.game.Game;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        // Removing title bar
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        
        //Get display-size
        Display display = getWindowManager().getDefaultDisplay(); 
        @SuppressWarnings("deprecation")
		int width = display.getWidth();  // deprecated
        @SuppressWarnings("deprecation")
		int height = display.getHeight();  // deprecated
        
        // Create the game
        Game game = new Game(this, null);
        
        //Push the main state
        game.pushState(new GameState(width, height));
        
        // View the game
        setContentView(game);
    }

}
